package com.Liuxu.pojo;

public class Teacher {

    //属性
    private String teaName;
    private int teaAge;

    //行为
    public void doTeacher(){
        System.out.println("I am teachering....");
    }

    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName;
    }

    public int getTeaAge() {
        return teaAge;
    }

    public void setTeaAge(int teaAge) {
        this.teaAge = teaAge;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teaName='" + teaName + '\'' +
                ", teaAge=" + teaAge +
                '}';
    }
}
